package cafe.adriel.androidaudiorecorder.model;

/**
 * ex.
 *
 * @author lj
 * @since 2021-04-06
 */
public enum AudioSampleRate {
    /**
     * Audio HZ_48000
     */
    HZ_48000,
    /**
     * Audio HZ_44100
     */
    HZ_44100,
    /**
     * Audio HZ_32000
     */
    HZ_32000,
    /**
     * Audio HZ_22050
     */
    HZ_22050,
    /**
     * Audio HZ_16000
     */
    HZ_16000,
    /**
     * Audio HZ_11025
     */
    HZ_11025,
    /**
     * Audio HZ_8000
     */
    HZ_8000;

    public int getSampleRate() {
        return Integer.parseInt(name().replace("HZ_", ""));
    }
}